package com.tubang.component.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wsl
 * @since 2017-11-30
 */
@TableName("tb_user")
public class UserEntity extends BaseEntity<UserEntity> {

    private static final long serialVersionUID = 1L;


    /**
     * 昵称
     */
    @TableField("nike_name")
    private String nikeName;

    /**
     * 性别
     */
    private String sex;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 归属公司 部门
     */
    @TableField("company_id")
    private String companyId;
    /**
     * 支付密码
     */
    @TableField("pay_password")
    private String payPassword;
    /**
     * 第三方登录标识
     */
    @TableField("third_open_id")
    private String thirdOpenId;
    /**
     * 真实姓名
     */
    @TableField("real_name")
    private String realName;
    /**
     * 身份证号
     */
    @TableField("identity_num")
    private String identityNum;
    /**
     * 地址
     */
    @TableField("address_id")
    private String addressId;
    /**
     * 货主负责人/公司名称
     */
    private String name;
    /**
     * 密码
     */
    private String password;
    /**
     * 工号
     */
    private String number;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 手机=用户名
     */
    private String mobile;
    /**
     * 用户类型  60001个体司机；60002内部人员；60003公司用户，60004货主用户，60006平台用户 ,60007 部门人员 ,
     * 60008 客服  60009 员工 60010 销售 60013
     */
    @TableField("user_type")
    private String userType;


    @TableField("role_id")
    private String roleId;

    /**
     * 身份证正面照
     */
    @TableField("id_photo_front")
    private String idPhotoFront;
    /**
     * 身份证背面照
     */
    @TableField("id_photo_behind")
    private String idPhotoBehind;
    /**
     * 用户头像地址
     */
    @TableField("head_url")
    private String headUrl;
    /**
     * 申请状态
     * 801 待审核；802-通过；803-拒绝；
     */
    private String status;

    public String getCompanyId() {
        return companyId;
    }

    public UserEntity setCompanyId(String companyId) {
        this.companyId = companyId;
        return this;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public UserEntity setPayPassword(String payPassword) {
        this.payPassword = payPassword;
        return this;
    }

    public String getThirdOpenId() {
        return thirdOpenId;
    }

    public UserEntity setThirdOpenId(String thirdOpenId) {
        this.thirdOpenId = thirdOpenId;
        return this;
    }

    public String getRealName() {
        return realName;
    }

    public UserEntity setRealName(String realName) {
        this.realName = realName;
        return this;
    }

    public String getAddressId() {
        return addressId;
    }

    public UserEntity setAddressId(String addressId) {
        this.addressId = addressId;
        return this;
    }

    public String getName() {
        return name;
    }

    public UserEntity setName(String name) {
        this.name = name;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public UserEntity setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getNumber() {
        return number;
    }

    public UserEntity setNumber(String number) {
        this.number = number;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public UserEntity setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public UserEntity setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getUserType() {
        return userType;
    }

    public UserEntity setUserType(String userType) {
        this.userType = userType;
        return this;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public UserEntity setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
        return this;
    }

    public String getIdentityNum() {
        return identityNum;
    }

    public UserEntity setIdentityNum(String identityNum) {
        this.identityNum = identityNum;
        return this;
    }

    public String getIdPhotoFront() {
        return idPhotoFront;
    }

    public void setIdPhotoFront(String idPhotoFront) {
        this.idPhotoFront = idPhotoFront;
    }

    public String getIdPhotoBehind() {
        return idPhotoBehind;
    }

    public void setIdPhotoBehind(String idPhotoBehind) {
        this.idPhotoBehind = idPhotoBehind;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "UserEntity [companyId=" + companyId + ", payPassword=" + payPassword + ", thirdOpenId=" + thirdOpenId
                + ", realName=" + realName + ", identityNum=" + identityNum + ", addressId=" + addressId + ", name="
                + name + ", password=" + password + ", number=" + number + ", email=" + email + ", mobile=" + mobile
                + ", userType=" + userType + ", idPhotoFront=" + idPhotoFront + ", idPhotoBehind=" + idPhotoBehind
                + ", headUrl=" + headUrl + ", status=" + status + "]";
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getNikeName() {
        return nikeName;
    }

    public void setNikeName(String nikeName) {
        this.nikeName = nikeName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}
